package com.tedu.weibo.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

@Data
public class UserLoginDTO {
    @Pattern(regexp = "^[A-Za-z0-9]{1,14}$")
//    @Size(min = 6,max=20,message = "用户名必须在6-20字符之间")
//    @NotBlank(message = "用户名不能为NULL")
//    @NotEmpty(message="用户名不能为NULL")
//    @NotNull(message = "用户名不能为NULL")
    @ApiModelProperty(value = "用户名",required = true,example = "张三")
    private String username;
    @ApiModelProperty(value = "密码", required = true ,example = "123456")
    private String password;
}